removeProperty

public abstract boolean removeProperty(String name)

Removes a property with the given name in the JavaScript object and returns true if the property was successfully removed. Once you remove the property, it will not be available in the current JavaScript object anymore.

Return

true if the property was successfully removed

Parameters

name

a string that represents the name of the property or function

Throws

when name is empty or blank

when the JavaScript object is already disposed or invalid


public abstract boolean removeProperty(JsSymbol jsSymbol)

Removes a property with the given jsSymbol key in the JavaScript object and returns true if the property was successfully removed. Once you remove the property, it will not be available in the current JavaScript object anymore.

Return

true if the property was successfully removed

Since

8.13.0

Parameters

jsSymbol

a symbol that represents the property key

Throws

when jsSymbol is from a different web page or frame

when the JavaScript object or jsSymbol is already disposed or invalid